package producer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import producer.feign.impl.ProduceHelloServiceHystrixImpl;

@FeignClient(name= "spring-eureka-producer" , fallback = ProduceHelloServiceHystrixImpl.class)
public interface ProduceHelloService {
    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);
}
